﻿using Microsoft.EntityFrameworkCore.Metadata.Internal;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace S.PurchaseAndSales.Domain.Dto
{
    //转舍添加
    public class Transfer
    {
        public List<AddRangeSheepRescissionDto> sheep { get; set; }

        public Transfer()
        {
            sheep = new List<AddRangeSheepRescissionDto>();
        }
    }
    /// <summary>
    /// 转舍类
    /// </summary>
    public class AddRangeSheepRescissionDto
    {
        /// <summary>
        /// 转舍主键，自增标识列
        /// </summary>
        public int SheepRescissionId { get; set; }
        /// <summary>
        /// 可视耳标
        /// </summary>
        public string? EarTag { get; set; }
        /// <summary>
        /// 转舍日期
        /// </summary>
        public DateTime? SurrenderDate { get; set; }
        /// <summary>
        /// 转舍类型
        /// </summary>
        public int RoundType { get; set; }
        /// <summary>
        /// 转出栋舍
        /// </summary>
        public int TurnOutBuild { get; set; }

        /// <summary>
        /// 转出栏位
        /// </summary>
        public int TurnOutHuts { get; set; }
        /// <summary>
        /// 转出栋舍主键
        /// </summary>
        public int TurnOuBuildingManagementId { get; set; }
        /// <summary>
        /// 转出栏位主键
        /// </summary>
        public int TurnOuColumnManagementId { get; set; }
        /// <summary>
        /// 转入栋舍
        /// </summary>
        public int ShiftToBuild { get; set; }
        /// <summary>
        /// 转入栏位
        /// </summary>
        public int ShiftToHuts { get; set; }
        /// <summary>
        /// 转入栋舍主键
        /// </summary>
        public int ShiftToBuildingManagementId { get; set; }
        /// <summary>
        /// 转入栏位主键
        /// </summary>
        public int ShiftToColumnManagementId { get; set; }
        /// <summary>
        /// 创建人
        /// </summary>
        [Column(TypeName = "nvarchar(20)")]
        [MaxLength(20)]
        public string? CreateBy { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateDate { get; set; }

        /// <summary>
        /// 修改人
        /// </summary>
        [Column(TypeName = "nvarchar(20)")]
        [MaxLength(20)]
        public string? UpdateBy { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? UpdateDate { get; set; }
        /// <summary>
        /// 是否删除
        /// </summary>
        public bool IsDel { get; set; }
        /// <summary>
        /// 单据号
        /// </summary>
        public long DocumentNumbe { get; set; }
        /// <summary>
        /// 羊只类型
        /// </summary>
        public string? Type { get; set; }

        /// <summary>
        /// 性别
        /// </summary>
        public int Sex { get; set; }
        /// <summary>
        /// 转舍事件
        /// </summary>
        public int TransFerType { get; set; }
    }
}
